package cn.getech.data.development.service.impl;

import cn.getech.data.development.entity.BdpUdfJarInfo;
import cn.getech.data.development.mapper.BdpUdfJarInfoMapper;
import cn.getech.data.development.model.vo.BdpUdfJarInfoVo;
import cn.getech.data.development.service.IBdpUdfJarInfoService;
import cn.getech.data.intelligence.common.utils.PageUtils;
import cn.getech.data.intelligence.common.utils.Query;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * udf
udf的jar
udf的jar包信息 服务实现类
 * </p>
 *
 * @author wcj
 * @since 2020-06-30
 */
@Service
public class BdpUdfJarInfoServiceImpl extends ServiceImpl<BdpUdfJarInfoMapper, BdpUdfJarInfo> implements IBdpUdfJarInfoService {
    @Autowired
    private BdpUdfJarInfoMapper bdpUdfJarInfoMapper;

    @Override
    public PageUtils selectJarsByProcAndName(Map<String, Object> params) {
        IPage<BdpUdfJarInfoVo> page  = this.baseMapper.selectJarsByProcAndName((Page<BdpUdfJarInfoVo>) new Query<BdpUdfJarInfoVo>().getPage(params),params);
        return new PageUtils(page);
    }
}
